package com.bort.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("t_order")
public class TOrder {

    @TableId("id")
    private Integer id;

    @TableField("order_no")
    private String orderNo;

    @TableField("goods_id")
    private Integer goodsId;

    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @TableField("goods_num")
    private Integer goodsNum;

    @TableField("total")
    private BigDecimal total;

    @TableField("real_pay")
    private BigDecimal realPay;

    @TableField("order_status")
    private Integer orderStatus;

    @TableField("desk_id")
    private Integer deskId;

    @TableField("customer")
    private String customer;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;

    @TableField("create_user_id")
    private Integer createUserId;

    @TableField("business_type")
    private Integer businessType;

}
